package com.cookbook.database.model;

/**
 * Created 胡玉斌 on 2017/7/4.
 */

import java.util.Date;

public class Cookbook {
    private Integer cookbookid;

    private User user;

    //private Integer userid;

    private String title;

    private String cover;

    private String content;

    private Date createdat;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Integer getCookbookid() {
        return cookbookid;
    }

    public void setCookbookid(Integer cookbookid) {
        this.cookbookid = cookbookid;
    }

    /*public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }*/

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover == null ? null : cover.trim();
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content == null ? null : content.trim();
    }

    public Date getCreatedat() {
        return createdat;
    }

    public void setCreatedat(Date createdat) {
        this.createdat = createdat;
    }
}